//二级菜单
$('.firstMenu span').on('click',function(){
	if($(this).attr('status') == 0){
		$('.secondMenu').show();
		$(this).addClass('arrowUp').removeClass('arrowDown');
		$(this).attr('status',1);
	}else{
		$('.secondMenu').hide();
		$(this).addClass('arrowDown').removeClass('arrowUp');
		$(this).attr('status',0);
	}
	
})
$('.eshopSubmitOperation').on('click',function(){
	var userName = $('.userInputName').val() || '';
	var userPhone = $('.userPhone').val() || '';
	var eshopType = $('#eshopType').val();
	if(Boolean(userPhone) && Boolean(userName)){
		var ruzhu = $('input[name=ruzhu]:checked').attr('value');
		var xuqiu = $('input[name=xuqiu]:checked').attr('value');
		var qq = $('.qq').val() || '';
		$('#textAddressValue').val($('#textAddress').val());
		var textAddressValue = $('#textAddressValue').val() || '';
		var isModifyId = $('#isModifyId').val();
		var weixin = $('.weixin').val() || '';
		$.ajax({
			type : "POST",
			url : "/eshop/task/doPostEshop",
			data:{
				"name":userName,
				'phone':userPhone,
				'qq':qq,
				'ruzhu':ruzhu,
				'eshopType':eshopType,
				'type':xuqiu,
				'remark':textAddressValue,
				'weixin':weixin,
				'isModifyId':isModifyId
				},
			dataType : "html",
			success:function(data){
				window.location.href='/eshop/task/saleOrBuyList.htm';
				/*$('.submitSuccessTip').show();
				$('html').css('overflow','hidden');
				$('body').css('overflow','hidden');*/
			}
		})
		
	}else{
		tipShow();
	}
})